<!doctype html>
[#escape x as (x)!?html]
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>${channel.seoTitle!channel.name} - ${site.seoTitle} - Powered by JPROCMS</title>
  <meta name="keywords" content="${channel.seoKeywords!site.seoKey}">
  <meta name="description" content="${channel.seoDescription!site.seoDesc}">
 [#include '../includes/common_res.html'/]
</head>
<body>
[#if config.grade>1&&!dynamic]
  <!--# include file="/${site.sitePathPrefix}/includes/header.html" -->
[#else]
  [#include '../includes/header.html'/]
[/#if]
[#if channel.parent?? || channel.children?size > 0]
<div class="bg-gray-200">
  <div class="container">
    <nav class="row" aria-label="breadcrumb">
      <ol class="col list-inline my-2">
        [#assign parent = channel.parent!channel/]
        <li class="list-inline-item"><a class="btn btn-sm [#if parent.id == channel.id]btn-primary[#else]btn-link[/#if]" href="${parent.url}">全部</a></li>
        [@ZChannelList parentId=parent.id; list]
          [#list list as content]
            <li class="list-inline-item"><a class="btn btn-sm [#if channel.id == content.id]btn-primary[#else]btn-link[/#if]" href="${content.url}">${content.name}</a></li>
          [/#list]
        [/@ZChannelList]
      </ol>
    </nav>
  </div>
</div>
[/#if]
<div class="container">
  <div class="row">
    <div class="col mt-2">
      <div>
        [#assign customsQueryMap={}/]
        [#list channel.contentModel.fieldList?filter(field->['radio','checkbox','select','multipleSelect']?seqContains(field.type)) as field]
          <div class="py-1 border-bottom">
            [#assign param=field.code+'_cus'/]
            <a href="${ZParamsJoin(channel.url, channel.dynamicUrl, param)}" class="btn btn-sm[#if !Params[param]??] btn-secondary[#else] btn-link text-reset[/#if]">全部${field.name}</a>
            [@ZDictList type=field.dictType; list]
              [#list list as dict]
                <a href="${ZParamsJoin(channel.url, channel.dynamicUrl, param, dict.value)}"
                   class="btn btn-sm [#if Params[param]! == dict.value]btn-secondary[#else]btn-link text-reset[/#if]">${dict.label}</a>
              [/#list]
            [/@ZDictList]
          </div>
          [#assign customsQueryMap=customsQueryMap + {'EQ_'+param: Params[param]!}/]
        [/#list]
      </div>
      [@ZContentPage channelId=channel.id includeChildChannel='true' customs=customsQueryMap orderBy="top_level_desc,release_time_desc"; pageResult]
        <div class="row mx-n1 mb-3">
          [#list pageResult.list as content]
            <div class="col-lg-3 col-6 px-1 mt-3">
              <div class="card">
                <div class="position-relative">
                  <img src="${content.sysImage}" class="card-img-top" alt="${content.title}">
                  <div class="common-trans-bottom clearfix px-2 text-light">
                    <div class="float-left"><i class="far fa-play-circle"></i></div>
                    <div class="float-right">${content.videoDuration}</div>
                  </div>
                </div>
                <div class="card-body p-2">
                  <p class="card-text text-truncate">[@ZUrl object=content class="text-reset stretched-link"/]</p>
                </div>
              </div>
            </div>
          [/#list]
        </div>
        [#include '../includes/inc_page.html'/]
      [/@ZContentPage]
    </div>
  </div>
</div>
[#if config.grade>1&&!dynamic]
    <!--# include file="/${site.sitePathPrefix}/includes/footer.html" -->
[#else]
    [#include '../includes/footer.html'/]
[/#if]
<script>axios.get('${api}/channel/view/${channel.id?c}');</script>
</body>
</html>
[/#escape]
